package com.jsbj.user.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jsbj.base.ResultBean;
import com.jsbj.user.entities.SysTenant;

import java.util.List;

/**
 * <p>
 * 系统租户表 服务类
 * </p>
 *
 * @author jsbj
 * @since 2022-02-22
 */
public interface ISysTenantService extends IService<SysTenant> {

    List<SysTenant> getByUserId(String userId);

    List<String> getChildTenantCode(String tenantCode);

    SysTenant getByTenantCode(String tenantCode);

    List<SysTenant> getByTenantTypeValue(String tenantTypeValue);

    IPage<SysTenant> getListData(String inParam);

    ResultBean<JSONObject> saveOrUpdateData(SysTenant sysTenant);

    SysTenant getDetail(String id);

    ResultBean<JSONObject> deleteData(String id);

    List<SysTenant> getAllTenant();

    List<SysTenant> getTenantInfoMul(List<String> tenantCodeLs);

    List<SysTenant> getCopyTenant(String inParam);

    List<SysTenant> getByUserIdPage(String userId);

    List<SysTenant> getAllTenantQx(String userId, String roleId);

    IPage<SysTenant> getProjectList(String inParam);

}
